<!--
  @author yangjiangming
  @date 2018-12-10 20:40:28
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html th:replace="~{work/modify/common/layout :: layout('收单', ~{::title}, ~{::content}, ~{::script})}"
      xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>工单管理-派单方式</title>
</head>
<body>

<div th:fragment="content">
    <style>
        .layui-form-label {
            width: 85px !important;
        }
    </style>
    <form class="layui-form">
        <input id="work-id" type="hidden" name="workId" th:value="${workId}"/>
        <input id="order-id" type="hidden" name="orderId" th:value="${orderId}"/>
        <input id="agent" type="hidden" name="agent" th:value="${agent}"/>
        <input id="grabEndTime" type="hidden" name="grabEndTime" th:value="${grabEndTime}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">更改到：</label>
            <div class="layui-input-block">
                <input type="radio"
                       name="grabType"
                       th:value="1"
                       th:title="派单"
                       th:disabled="${grabType != 2}"
                       lay-verify="required">
                <input type="radio"
                       name="grabType"
                       th:value="2"
                       th:title="抢单"
                       th:disabled="${grabType == 2}"
                       lay-verify="required">
            </div>
        </div>
        <th:block th:if="${grabType != 2}">
            <div class="layui-form-item">
                <label class="layui-form-label">抢单时间段：</label>
                <label class="layui-form-label"><span th:text="${grabTime}"></span></label>
            </div>
        </th:block>
        <div class="layui-form-item" style="text-align: center;margin-top: 30px;">
            <div class="layui-inline">
                <input type="button" class="layui-btn layui-btn-normal" lay-submit value="保存"></input>
            </div>
        </div>
    </form>
</div>


<script th:inline="javascript">
    var layuiModel = {
        oms_work_modify_change_assignment: "work/modify/zmn.oms.work.modify.changeAssignment"
    };
</script>
</body>
</html>
